@import '@/assets/common/commonStyle.scss';
$primary-empty-color: #EBF8F5;
$colorPrimary: #1890ff;
$colorSuccess: #13ce66;
$colorWarning: #ffba00;
$colorDanger: #ff4949;
$colorInfo: #5d5d5d;

@font-face {
    font-family: "iconfont";
    /* Project id 4673232 */
    src: url('iconfont.woff2?t=1725411190757') format('woff2'),
        url('iconfont.woff?t=1725411190757') format('woff'),
        url('iconfont.ttf?t=1725411190757') format('truetype');
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.c-primary {
    color: $colorPrimary;
}

.c-success {
    color: $colorSuccess;
}

.c-warning {
    color: $colorWarning;
}

.c-danger {
    color: $colorDanger;
}

.c-info {
    color: $colorInfo;
}

.yuan-container {

    .filter-panel {
        overflow: hidden;

        .ant-input-search {
            width: 200px;
        }

        .filter-list {
            margin-right: 10px;
            display: inline-block;
            margin-bottom: 10px;
            vertical-align: top;
        }

        .filter-tips {
            line-height: 32px;
            display: inline-block;
        }

        button {
            margin-right: 10px;
        }
    }
}

.primary-empty-btn {
    background: $primary-empty-color;
    border-radius: 0px 2px 2px 0px;
    border-color: $theme-color !important;
    color: $theme-color;

    &:active {
        background-color: $primary-empty-color !important;
        border-color: $theme-color !important;
        box-shadow: 0 0 0 2px rgba(5, 176, 137, 0.2) !important;
        color: $theme-color;
    }

    &:focus {
        background-color: $primary-empty-color !important;
        border-color: $theme-color !important;
        color: $theme-color;
    }

    &:hover {
        background-color: $primary-empty-color !important;
        border-color: $theme-color !important;
        color: $theme-color;
    }
}

.delete-empty-btn {
    background: $primary-empty-color;
    border-radius: 0px 2px 2px 0px;
    border-color: $theme-color !important;
    color: $colorDanger;

    &:active {
        background-color: $primary-empty-color !important;
        border-color: $theme-color !important;
        box-shadow: 0 0 0 2px rgba(5, 176, 137, 0.2) !important;
        color: $colorDanger;
    }

    &:focus {
        background-color: $primary-empty-color !important;
        border-color: $theme-color !important;
        color: $colorDanger;
    }

    &:hover {
        background-color: $primary-empty-color !important;
        border-color: $theme-color !important;
        color: $colorDanger;
    }
}

.yuan-form {
    .form-panel-box {
        .yuan-form-col3 {
            width: 30%;
        }
    }

    .yuan-form-col3 {
        .yuan-form-item {
            width: 30%;
        }
    }

    .form-panel-box {
        .yuan-form-col5 {
            width: 50%;
        }
    }

    .yuan-form-col5 {
        .yuan-form-item {
            width: 50%;
        }
    }

    .yuan-form-item {
        min-width: 300px;
        margin-right: 0;
        width: 100%;
    }

    .yuan-form-show {
        width: 200px;
        line-height: 26px;
        display: inline-block;
        color: #000;
    }

    .yuan-form-input {
        width: 200px;
        //border-color: #eee !important;
    }

    .yuan-form-row-item {
        .ant-form-item-children {
            min-width: 200px;
            display: block;
        }

        .yuan-form-input {
            width: 120px;
        }

        .yuan-form-item-btn {
            padding: 0;
            width: 80px;
            line-height: 0;

            .ant-select-selection {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }
        }

        .yuan-form-input,
        .yuan-form-input .ant-select-selection {
            border-right: unset;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }
    }

    .yuan-form-suf-item {
        .ant-input-suffix {
            right: 0;
        }
    }

    .yuan-form-placeholder {
        font-size: 14px;
        color: #bbb;
    }
}

.yuan-modal {
    .ant-modal-body {
        background-color: #FAF8F8;
    }

    .form-panel {
        background-color: #fff;
        border-radius: 8px;
        padding: 20px 10px;
        margin-bottom: 10px;
    }

    .form-panel-box {
        border: solid 1px #eee;
        padding: 10px;
    }

    .form-panel-title {
        margin-bottom: 20px;
        font-size: 18px;
        color: #484848;
    }
}

.yuan-table {
    padding: 10px 0;

    .header-row {
        color: #111;
    }

    .table-row {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .table-col {
        width: 200px;
        margin-right: 30px;
    }

    .col-1 {
        width: 100px;
        margin-right: 2px;
        flex-shrink: 0;
    }
}

.mast-ico {
    position: relative;
}

.mast-ico::before {
    content: '*';
    color: #F34038;
    font-size: 16px;
    vertical-align: middle;

}

.flex-grow {
    flex-grow: 1;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-nowarp {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clear-both {
    clear: both;
    width: 100%;
}

.ant-upload-picture-card-wrapper {
    vertical-align: text-top;
}